﻿

using System;
using System.Collections.Generic;
using Entidades;
using NHibernate;

namespace AccesoDatos.DAO
{
    public class DaoHistorial:IDAO.IDaoHistorial
    {
        public IList<HistorialEvento> SeleccionarTodos()
        {
            ISession sesion = ConfiguracionNHibernate.GetCurrentSession();
            sesion.BeginTransaction();
            IQuery query = sesion.CreateQuery("from HistorialEvento");
            IList<HistorialEvento> retorna = (IList<HistorialEvento>)query.List<HistorialEvento>();
            sesion.Transaction.Commit();
            return retorna;
        }

        public HistorialEvento SeleccionarPorId(int id)
        {
            throw new NotImplementedException();
        }

        public void Insertar(HistorialEvento c)
        {
            throw new NotImplementedException();
        }

        public void Modificar(HistorialEvento c)
        {
            throw new NotImplementedException();
        }

        public void EliminarPorId(int id)
        {
            throw new NotImplementedException();
        }
    }
}
